import request from '../../../utils/request'

const api = {
  getProjectTree(params) {
    return request({
      url: '/jklc/tunnel/getTree',
      method: 'get',
      params
    })
  },

  getTCSData(params) {
    return request({
      url: '/jklc/tcs/getList',
      method: 'get',
      params
    })
  },

  getUnitData(params) {
    return request({
      url: '/jklc/element/getList',
      method: 'get',
      params
    })
  },

  getUnitLogData(params) {
    return request({
      url: '/jklc/pointtRecord/getMonitoringRecordByElementId',
      method: 'get',
      params
    })
  },
  getUnitLogDataOfPoint(params) {
    return request({
      url: '/jklc/pointtRecord/getMonitoringRecordByPointId',
      method: 'get',
      params
    })
  },
  getUnitLogDataOfPointOdd(data) {
    return request({
      url: '/jklc/pointtRecord/getDataAnalysisByPointIdBacth',
      method: 'post',
      data
    })
  },

  // getBestData(params) {
  //   return request({
  //     url: '/jklc/pointtRecord/getExponentDataAnalysisTest',
  //     method: 'get',
  //     params
  //   })
  // }
  getBestData(params) {
    return request({
      url: '/jklc/pointtRecord/getDataAnalysis',
      method: 'get',
      params
    })
  },

  getBestDataOfPoint(params) {
    return request({
      url: '/jklc/pointtRecord/getDataAnalysisByPointId',
      method: 'get',
      params
    })
  },
  getBestDataAndPoint(params) {
    return request({
      url: '/jklc/pointtRecord/getDataAnalysisByElementId',
      method: 'get',
      params
    })
  },
}

export default api
